package cc.comac.mom.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipDevOpParamService;
import cc.comac.mom.bean.EquipDevOpParam;
import cc.comac.mom.bean.EquipDevOpParamBean;
import cc.comac.mom.datahandlers.entity.EquipDevOpParamDataHandler;
import cc.comac.mom.util.ResultBean;

@Service
@RestController
public class EquipDevOpParamServiceImpl implements EquipDevOpParamService {
	@Autowired
	private EquipDevOpParamDataHandler equipDevOpParamDataHandler;
	@Override
	public ResultBean save(@RequestBody EquipDevOpParam obj) {
		// TODO Auto-generated method stub
		return equipDevOpParamDataHandler.save(obj);
	}

	@Override
	public ResultBean update(@RequestBody EquipDevOpParam obj) {
		// TODO Auto-generated method stub
		return equipDevOpParamDataHandler.update(obj);
	}

	@Override
	public ResultBean delete(@RequestBody EquipDevOpParam obj) {
		// TODO Auto-generated method stub
		return equipDevOpParamDataHandler.delete(obj);
	}

	@Override
	public EquipDevOpParam getById(@RequestBody EquipDevOpParam obj) {
		// TODO Auto-generated method stub
		return equipDevOpParamDataHandler.getById(obj.getInnerData().getId());
	}

	@Override
	public EquipDevOpParamBean selectByCondition(@RequestBody EquipDevOpParam obj) {
		// TODO Auto-generated method stub
		return equipDevOpParamDataHandler.selectByCondition(obj);
	}

}
